﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ModificarUsuarios.aspx.cs" Inherits="Ubatic.UI.App.ModificarUsuarios" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 onclick="window.AppCommonObj.toggleVisibility('imgExpand', 'searchBox');">
        <img width="15px" height="15px" id="imgExpand" class="imgExpand" src="/Images/icon_blockexpanded.png"
            alt="" />
        Buscar Usuario<span class="clear"></span>
    </h2>
    <div class="editionContainerFilter" id="searchBox">
        <p>
            <span class="title2">CUIL:</span>
            <asp:TextBox ID="txtCuitA" runat="server" MaxLength="2"></asp:TextBox>-
            <asp:TextBox ID="txtCuitB" runat="server" MaxLength="8"></asp:TextBox>-
            <asp:TextBox ID="txtCuitC" runat="server" MaxLength="1"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Nombre/s:</span>
            <asp:TextBox ID="txtNombre" runat="server" CssClass="inputs"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Apellido/s:</span>
            <asp:TextBox ID="txtApellido" runat="server" CssClass="inputs"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Tipo Documento:</span>
            <asp:DropDownList ID="ddlTipoDocumento" runat="server" CssClass="cbo">
            </asp:DropDownList>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Nro Documento:</span>
            <asp:TextBox ID="txtNroDocumento" runat="server" CssClass="inputs"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Unidad Acad&eacute;mica:</span>
            <asp:DropDownList ID="ddlUnidadAcademica" runat="server" CssClass="cbo">
            </asp:DropDownList>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Correo Electr&oacute;nico:</span>
            <asp:TextBox ID="txtCorreoElectronico" Width="300px" MaxLength="100" runat="server" CssClass="inputs"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <div>
            <asp:Button ID="btnBuscar" ClientIDMode="Static" runat="server" Text="Buscar" OnClick="btnBuscar_Click" />
        </div>
        <div class="clear">
        </div>
    </div>
    <h2 onclick="window.AppCommonObj.toggleVisibility('img1', 'pnlResults');">
        <img width="15px" height="15px" id="img1" class="imgExpand" src="/Images/icon_blockexpanded.png"
            alt="" />
        Resultado de la Busqueda<asp:Label ID="lblCantReg" runat="server"></asp:Label><span
            class="clear"></span><span class="clear"></span>
    </h2>
    <asp:Panel ID="pnlResults" CssClass="editionContainerForGrid" runat="server" ClientIDMode="Static">
        <asp:GridView ID="Grid" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
            AutoGenerateColumns="False" DataKeyNames="Id" Width="100%" AllowPaging="True"
            OnPageIndexChanging="Grid_PageIndexChanging" OnRowCommand="Grid_RowCommand" OnRowDataBound="Grid_RowDataBound">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="CUIL">
                    <HeaderStyle HorizontalAlign="Left" Width="40px" />
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:LinkButton ID="btnCuil" runat="server" Text='<%# Eval("Cuil") %>' CommandName="editar"
                            CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" HeaderStyle-HorizontalAlign="Left"
                    ItemStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="Apellido" HeaderText="Apellido" HeaderStyle-HorizontalAlign="Left"
                    ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="TipoDocumentoId" HeaderText="Tipo de Documento" HeaderStyle-HorizontalAlign="Left"
                    ItemStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="NroDocumento" HeaderText="Nro de Documento" HeaderStyle-HorizontalAlign="Left"
                    ItemStyle-HorizontalAlign="Left" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4b6c9e" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="#4b6c9e" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
            <EmptyDataTemplate>
                <p>
                    No existen usuarios</p>
            </EmptyDataTemplate>
        </asp:GridView>
    </asp:Panel>
    <br />
    &nbsp;
    <script type='text/javascript'>

        $(document).ready(function () {

            if (!window.AppCommonObj) {
                window.AppCommonObj = new AppCommon();
            }
            //                 $('input[title]').inputHints();


            window.AppCommonObj.initializeEnterKeyEvent($('#searchBox'), function () {
                __doPostBack($('#lnkBuscar').attr('aspnetid'), '');
            });
        });
    </script>
</asp:Content>
